package com.cicc.beergamevirtualsimulationsystem.common.webSocket.handler.impl;

import com.cicc.beergamevirtualsimulationsystem.common.webSocket.handler.JsonMessageHandler;
import com.cicc.beergamevirtualsimulationsystem.common.webSocket.message.Impl.PlayerCountJsonWebSocketMessage;
import com.cicc.beergamevirtualsimulationsystem.common.webSocket.message.JsonWebSocketMessage;
import com.cicc.beergamevirtualsimulationsystem.common.webSocket.message.WebSocketMessageTypeEnum;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.WebSocketSession;

@Component
public class PlayerCountJsonMessageHandler implements JsonMessageHandler<PlayerCountJsonWebSocketMessage> {

    @Override
    public void handle(WebSocketSession session, PlayerCountJsonWebSocketMessage message) {

    }

    @Override
    public String type() {
        return WebSocketMessageTypeEnum.GAME_ROOM_PLAYER_COUNT.getValue();
    }

    @Override
    public Class<PlayerCountJsonWebSocketMessage> getMessageClass() {
        return PlayerCountJsonWebSocketMessage.class;
    }
}
